package com.meteor.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import com.meteor.entity.Community;
import com.meteor.framework.common.utils.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author lynn
 * @date 2024/1/26
 */

@Data
public class InvitationRemarkVO implements Serializable, TransPojo {


    @Schema(description = "内容")
    private String remarkContent;

    @Schema(description = "id")
    private String id;

    @Schema(description = "帖子id")
    private String invitationId;

    @Schema(description = "父id")
    private String parentId;

    @Schema(description = "组织id")
    private String orgId;

    @Schema(description = "组织名称")
    private String orgName;

    @Schema(description = "商户id")
    private String merchantId;

    @Schema(description = "商户名称")
    private String merchantName;

    @Schema(description = "社区id")
    @Trans(type = TransType.SIMPLE, target = Community.class, fields = "communityName", ref = "communityName")
    private String communityId;

    @Schema(description = "社区名称")
    private String communityName;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createTime;

    @Schema(description = "创建人id")
    private String createdBy;

    @Schema(description = "创建人姓名")
    private String createdUserName;

    @Schema(description = "父id创建人姓名")
    private String parentUserName;

    @Schema(description = "头像")
    private String avatar;


    @Schema(description = "图片")
    private List<String> imagesUrl;


    private List<InvitationRemarkVO> children;

}
